﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteSimc.master" AutoEventWireup="true" CodeFile="ModificarFiltro.aspx.cs" Inherits="Administracion_ModificarFiltro" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">  
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td width="100%" align="center">
            <h4>
                Filtro</h4>
            <br />
        </td>
    </tr>
    <tr>
        <td align="center" valign="top" bgcolor="#FFFFFF">
            <br />
            <table width="100%" border="0" cellspacing="1" cellpadding="1">
                <tr>
                    <td width="100%" align="left">
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
                        <table runat="server" id="tblDescripcionFiltro"  visible="true" width="100%" >
                            <tr>
                                <td>
                                    <strong>Descripción:</strong>
                                </td>
                                <td style="width:358px;">
                                    <asp:Label ID="lblDescripcion" runat="server" ></asp:Label>
                                </td>
                                <td>
                                    <strong>Query:</strong></td>
                                <td style="width:365px;">
                                    <asp:Label ID="lblQuery" runat="server" ></asp:Label>
                                </td>
                                <td>
                                    <asp:Button ID="btnModificarFiltro" runat="server" Text="Modificar" 
                                        Width="77px" Height="32px" 
                                        onclick="btnModificarFiltro_Click"  />   
                                </td>
                                
                            </tr>
                        </table>
                       
                        <table runat="server" id="tblModificarFiltro"  visible="false" width="100%" >
                            <tr>
                                <td style="width:80px;">
                                    <strong>Descripción:</strong></td>
                                <td style="width:356px;">
                                        <asp:TextBox ID="txtDescripcion" runat="server" 
                                        Width="350px"></asp:TextBox>
                                </td>
                                <td>
                                    <strong>Query:</strong></td>
                                <td>
                                   <asp:TextBox ID="txtQuery" runat="server" Width="432px" 
                                   TextMode="MultiLine" Height="51px"></asp:TextBox>                                                                                                    
                                </td>
                                
                                
                            </tr>
                        </table>
                         <table runat="server" id="tblGuardarFiltro" visible="false" width="100%"  >
                                        <tr>
                                          
                                            <td style="width:729px;">  
                                                <asp:RequiredFieldValidator ID="DescripcionRequerida" runat="server" 
                                                    ControlToValidate="txtDescripcion" CssClass="failureNotification" 
                                                    ErrorMessage="La Descripción es requerida."
                                                     Display="Dynamic">                                                     
                                                </asp:RequiredFieldValidator>
                                                <br />
                                                <asp:RequiredFieldValidator ID="QueryRequerido" runat="server" 
                                                    ControlToValidate="txtQuery" CssClass="failureNotification" 
                                                    ErrorMessage="El Query es requerido."
                                                    Display="Dynamic" >
                                                </asp:RequiredFieldValidator>                                              
                                            </td>
                                            <td style="width:34px;">                                            
                                                <asp:Button ID="btnGuardarFiltro" runat="server" 
                                                Height="32px" Text="Guardar" 
                                                Width="77px" onclick="btnGuardarFiltro_Click" />
                                                                                                                             
                                            </td>
                                            <td style="width:39px;">                                            
                                                <asp:Button ID="btnCancelarFiltro" runat="server" 
                                                Height="32px" Text="Cancelar" 
                                                Width="77px" onclick="btnCancelarFiltro_Click" CausesValidation="false" />                                                                                                                             
                                            </td>
                                        </tr>
                                    </table>   
                                    </ContentTemplate>
                                     <Triggers>
                                          <asp:AsyncPostBackTrigger ControlID="btnModificarFiltro" EventName="Click" />
                                          <asp:AsyncPostBackTrigger ControlID="btnGuardarFiltro" EventName="Click" />
                                          <asp:AsyncPostBackTrigger ControlID="btnCancelarFiltro" EventName="Click" />
                                     </Triggers>
                                   </asp:UpdatePanel>
                    </td>
                    <td width="39%" align="left">
                        &nbsp;</td>
                </tr>
            </table>
            <br />
        </td>
    </tr>
</table>         
        <br />
        <br />      
       
       
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">                                   
            <ContentTemplate>
                    &nbsp;
                    <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                   <br />
                   <table width="95%" runat="server" id="Table1" visible="true" >
                                        <tr>
                                <td class="tabla_verde" style="color: #FFFFFF; text-align: left;">
                                    <asp:Label ID="lblPerfilesAsociados" runat="server" Text="Perfiles Asociados"></asp:Label>
                                 
                                </td>
                            </tr>
                            <tr>
                                <td>                                                                    
                                    <div style="overflow-y:scroll;  overflow-x:hidden; height:345px; width:930px;">
                                    <table runat="server" id="tblPerfilesAsociados" visible="true" width="100%"  
                                        style="background-color:  White">
                                        <tr>
                                            <td  valign="middle">                                               
                                                <asp:CheckBoxList ID="cblPerfiles" runat="server" 
                                                 CellPadding="4"
                                                 CellSpacing="4"                                                   
                                                   >
                                                </asp:CheckBoxList>                                                        
                                            </td>
                                        </tr>                                                                                
                                    </table>                                        
                                   </div>    
                                   <table>
                                        <tr>
                                            <td  valign="middle">                                               
                                               <asp:Button ID="btnAsociarPerfil" runat="server" Text="Guardar" 
                                               Width="77px" Height="32px" onclick="btnAsociarPerfil_Click" />   
                                            &nbsp;
                                                <asp:Button ID="btnCancelarAsociacion" runat="server" Text="Cancelar"  
                                                    Width="77px" Height="32px" onclick="btnCancelarAsociacion_Click" />
                                            </td>
                                        </tr>
                                   </table>
                                   
                                </td>
                            </tr>
                        </table>
                        </ContentTemplate>
                                     <Triggers>
                                          <asp:AsyncPostBackTrigger ControlID="btnAsociarPerfil" EventName="Click" />
                                          <asp:AsyncPostBackTrigger ControlID="btnCancelarAsociacion" EventName="Click" />                                          
                                     </Triggers>
                        </asp:UpdatePanel>
        
    
    
    
    
</asp:Content>

